import { combineReducers } from 'redux-immutable';

//导入需要合并的reudcer
import {reducer as adminReducer} from './adminsStore';
import {reducer as userReducer} from './usersStore';
import {reducer as articleReducer} from './articleStore';
import {reducer as disGroupReducer} from './discussionStore';
import {reducer as questionReducer} from './questionStore';
import {reducer as loginReducer} from './loginStore';


//合并reducer
const globleReducer = combineReducers({
    administrator: adminReducer,
    users: userReducer,
    articles:articleReducer,
    disGroups:disGroupReducer,
    questions:questionReducer,
    user: loginReducer
})

export default globleReducer;